package com.study_online.domain;

/**
 * @author 张天霸
 */
public class PageBean {

    private int PrePage;//"前一页"
    private int PageNum;//当前页"
    private int NextPage;//"后一页"
    private int pageSize;//"每页条数
    private long pageTotal;//"总条数"
    private  int pages;//("总页码
    private boolean isFirstPage;//"是否是第一页
    private  boolean isLastPage;//"是否是最后一页"

    public PageBean() {
    }

    public PageBean(int prePage, int pageNum, int nextPage, int pageSize, long pageTotal, int pages, boolean isFirstPage, boolean isLastPage) {
        PrePage = prePage;
        PageNum = pageNum;
        NextPage = nextPage;
        this.pageSize = pageSize;
        this.pageTotal = pageTotal;
        this.pages = pages;
        this.isFirstPage = isFirstPage;
        this.isLastPage = isLastPage;
    }

    public int getPrePage() {
        return PrePage;
    }

    public void setPrePage(int prePage) {
        PrePage = prePage;
    }

    public int getPageNum() {
        return PageNum;
    }

    public void setPageNum(int pageNum) {
        PageNum = pageNum;
    }

    public int getNextPage() {
        return NextPage;
    }

    public void setNextPage(int nextPage) {
        NextPage = nextPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(long pageTotal) {
        this.pageTotal = pageTotal;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public boolean isFirstPage() {
        return isFirstPage;
    }

    public void setFirstPage(boolean firstPage) {
        isFirstPage = firstPage;
    }

    public boolean isLastPage() {
        return isLastPage;
    }

    public void setLastPage(boolean lastPage) {
        isLastPage = lastPage;
    }
}